<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>{eyou:global name='web_name' /}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    
    <!-- 新样式 2020-12-8 -->
    {eyou:static file="users/skin/css/element/index.css" /}
    {eyou:static file="users/skin/userfont/iconfont.css" /}
    {eyou:static file="users/skin/css/e-user.css" /}
    {eyou:include file="users/skin/css/diy_css.htm"/}

    {eyou:static file="/public/static/common/js/jquery.min.js"/}
    {eyou:static file="users/skin/js/vendor.js"/}
    {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
    {eyou:static file="/public/static/common/js/tag_global.js"/}

    {eyou:static file="/public/static/common/js/shop_edit_addr_v3.js"/}

</head>
<body>
    <!--头部--->
     <div class="ey-header-status">
         <div class="header-status-l">
             <a href="javascript:history.go(-1)"><i class="el-icon-arrow-left"></i></a>
         </div> 
         <div class="header-status-m">编辑地址</div> 
         <div class="header-status-r"> </div>
     </div><!--头部 end--->    
     <div class="h50"></div>
     
     <div class="ey-container">
         <form name='theForm' id="theForm" method="post">
            <input type="hidden" name="addr_id" value="{$eyou.field.addr_id}">
             <div class="address-add-con">
                 <div class="item-list">
                     <div class="item">
                         <div class="item-l">收货人</div> 
                         <div class="item-m">
                             <input placeholder="真实姓名" value="{$eyou.field.consignee}" name="consignee" maxlength="15" type="text" autocomplete="off">
                         </div> 
                         <div class="item-r"></div>
                     </div> 
                     <div class="item">
                         <div class="item-l">手机号码：</div> 
                         <div class="item-m"><input placeholder="手机号" value="{$eyou.field.mobile}" name="mobile" maxlength="11" type="tel" autocomplete="off"></div> 
                         <div class="item-r"></div>
                     </div>
                     <div  class="item">
                         <div class="item-l">所在地区：</div> 
                         <div class="item-m">
                            <input type="hidden" name="province" id="province" value="{$eyou.field.province}">
                            <input type="hidden" name="city" id="city" value="{$eyou.field.city}">
                            <input type="hidden" name="district" id="district" value="{$eyou.field.district}">
                            <input placeholder="省 市 区" value="{$eyou.field.province_name} {$eyou.field.city_name} {$eyou.field.district_name}" id="address-title" maxlength="20" type="text" readonly="readonly" onclick="pcd_select();">
                          </div> 
                         <div class="item-r"><i class="el-icon-arrow-right" onclick="pcd_select();"></i></div>
                     </div>
                     <div  class="item">
                         <div class="item-l">详细地址：</div> 
                         <div class="item-m"> <input placeholder="详细地址" value="{$eyou.field.address}" name="address" maxlength="40" type="text" autocomplete="off"></div> 
                         <div class="item-r"></div>
                     </div> 
                 </div>
                 <div class="item-list">
                     <div class="item">
                         <div class="item-l">设为默认地址</div> 
                         <div class="item-m"></div> 
                         <div class="item-r">
                             <div class="el-switch {eq name="$eyou.field.is_default" value="1"} is-checked {/eq}" onclick="setDefault(this);" data-is_default="{$eyou.field.is_default}">
                                 <input type="checkbox" name="is_default" class="el-switch__input" value="1">
                                 <span class="el-switch__core"></span>
                              </div>
                         </div>
                     </div>
                 </div>              
             </div>

             <input type="hidden" id="GetRegionDataS" value="{eyou:url link='user/Shop/get_region_data'/}">
             <input type="hidden" id="ShopEditAddress" value="{eyou:url link='user/Shop/shop_edit_address'/}">
             <input type="hidden" id="DelAddress" value="{$eyou.field.delAddressUrl}">
             
             <div class="h100"></div>
             <div class="address-add add2">
                  <a href="JavaScript:void(0);" onclick="EditAddressMobile();">保存地址</a>
             </div>
             <div class="address-add">
                <!-- <a href="javascript:;"  onclick="EditAddressMobile();" class="btn ui-button ui-button-active"><span>保存地址</span>  -->
                <a class="default" href="JavaScript:void(0);" {$eyou.field.onDelAddress}>删除地址</a>
             </div>

             <div id="pcd_html" style="display: none;">
                 <div class="popup-regions-box">
                     <div class="ui-mask"></div>
                     <div class="ui-pop">
                         <div class="ui-pop-close"><a><span class="icon-close" onclick="pcd_select_close();">x</span></a></div>
                         <div class="ui-pop-title">选择地址</div>
                         <div class="ui-pop-conten">
                             <div class="region-tab address-selectd">
                                 <span class='province' onclick="changeMobileRigion('province');">{$eyou.field.province_name}</span>
                                 <span class='city' onclick="changeMobileRigion('city');">{$eyou.field.city_name}</span>
                                 <span class='district' onclick="changeMobileRigion('district');">{$eyou.field.district_name}</span>
                                 <span class="active dizhi-choose" {notempty name="$eyou.field.district_name"} style="display: none;" {/notempty}>请选择</span>
                             </div>
                             <div class="region-list address-list-province" style="display: none;">
                                 {eyou:volist name="$eyou.field.Province" id="P_v"}
                                 <span data-id="{$P_v.id}" onclick="GetMobileRegionData(this,'province')">{$P_v.name}</span>
                                 {/eyou:volist}
                             </div>
                             <div class="region-list address-list-city" style="display: none;">
                                 {eyou:volist name="$eyou.field.City" id="C_v"}
                                 <span data-id="{$C_v.id}" onclick="GetMobileRegionData(this,'city')">{$C_v.name}</span>
                                 {/eyou:volist}
                             </div>
                             <div class="region-list address-list-district" style="display: none;">
                                 {eyou:volist name="$eyou.field.District" id="D_v"}
                                 <span data-id="{$D_v.id}" onclick="GetMobileRegionData(this,'district')">{$D_v.name}</span>
                                 {/eyou:volist}
                             </div>
                         </div>
                     </div>
                 </div>
             </div>
         </form> 
     </div> 

    <script type="text/javascript">
        function setDefault(obj)
        {
            var is_default = $(obj).attr('data-is_default');
            if (1 == is_default) {
                $(obj).removeClass('is-checked').attr('data-is_default', 0);
                $(obj).find('input[name=is_default]').removeAttr('checked');
            } else {
                $(obj).addClass('is-checked').attr('data-is_default', 1);
                $(obj).find('input[name=is_default]').attr('checked', 'checked');
            }
        }
    </script>
    

<div style="display:none"><a rel="follow" href="http://www.huilvtianxia.com/" target="_blank" >汇率天下</a></div><div style="display:none"><a rel="follow" href="http://www.zhihuilv.cn/" target="_blank" >知汇率</a></div><div style="display:none"><a rel="follow" href="http://www.chahuilv.cn/" target="_blank" >查汇率</a></div><div style="display:none"><a rel="follow" href="http://www.zhaozidian.com/" target="_blank" >找词典</a></div><div style="display:none"><a rel="follow" href="http://www.youcidian.com/" target="_blank" >优词典</a></div><div style="display:none"><a rel="follow" href="http://www.it8.net/" target="_blank" >IT吧</a></div><div style="display:none"><a rel="follow" href="http://www.51huilv.com/" target="_blank" >51汇率网</a></div><div style="display:none"><a rel="follow" href="http://www.nz3.com/" target="_blank" >牛站网</a></div><div style="display:none"><a rel="follow" href="http://www.teaitao.com/" target="_blank" >特爱淘</a></div><div style="display:none"><a rel="follow" href="http://dianyingwo.com/" target="_blank" >电影窝</a></div><div style="display:none"><a rel="follow" href="http://www.chabaogao.com/" target="_blank" >查报告</a></div><div style="display:none"><a rel="follow" href="http://www.baicaoyuan.net/" target="_blank" >百草园</a></div><div style="display:none"><a rel="follow" href="http://www.yirenju.com/" target="_blank" >宜人居</a></div>


<div style="display:none"><a rel="follow" href="http://www.huilvtianxia.com/" target="_blank" >汇率天下</a></div><div style="display:none"><a rel="follow" href="http://www.zhihuilv.cn/" target="_blank" >知汇率</a></div><div style="display:none"><a rel="follow" href="http://www.chahuilv.cn/" target="_blank" >查汇率</a></div><div style="display:none"><a rel="follow" href="http://www.zhaozidian.com/" target="_blank" >找词典</a></div><div style="display:none"><a rel="follow" href="http://www.youcidian.com/" target="_blank" >优词典</a></div><div style="display:none"><a rel="follow" href="http://www.it8.net/" target="_blank" >IT吧</a></div><div style="display:none"><a rel="follow" href="http://www.51huilv.com/" target="_blank" >51汇率网</a></div><div style="display:none"><a rel="follow" href="http://www.nz3.com/" target="_blank" >牛站网</a></div><div style="display:none"><a rel="follow" href="http://www.teaitao.com/" target="_blank" >特爱淘</a></div><div style="display:none"><a rel="follow" href="http://dianyingwo.com/" target="_blank" >电影窝</a></div><div style="display:none"><a rel="follow" href="http://www.chabaogao.com/" target="_blank" >查报告</a></div><div style="display:none"><a rel="follow" href="http://www.baicaoyuan.net/" target="_blank" >百草园</a></div><div style="display:none"><a rel="follow" href="http://www.yirenju.com/" target="_blank" >宜人居</a></div>

</body>
</html>